﻿@model ExtremeEvents.Models.MudarPasswordModel 

@{
    ViewBag.Title = "Mudar Password";
}
<script type="text/javascript">
    //alterar estado dos botoes
    activarBotao("areacliente"); //alterar para o nome da view
</script>

<h2>Mudar Password</h2>
<p>
    Por favor mude a sua password
</p>
<p>
   As novas passwords tem de ter no minimo @Membership.MinRequiredPasswordLength caracteres.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Error_13: Ocorreram erros. Por favor corrija e tente outra vez.")
    <div>
        <fieldset>
            <legend>Informação de Conta</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password_Antiga)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password_Antiga )
                @Html.ValidationMessageFor(m => m.Password_Antiga)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password_Nova)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password_Nova)
                @Html.ValidationMessageFor(m => m.Password_Nova )
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password_Confirmacao)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password_Confirmacao)
                @Html.ValidationMessageFor(m => m.Password_Confirmacao)
            </div>

            <p>
                <input type="submit" value="Mudar Password" />
            </p>
        </fieldset>
    </div>
}
